package com.mxpio.erp.common.workshop.service;

import com.mxpio.erp.common.plan.entity.ManufacturePlan;
import com.mxpio.erp.common.workshop.entity.OutsourceOrder;
import com.mxpioframework.common.vo.Result;
import com.mxpioframework.system.service.BaseService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface OutsourceOrderService extends BaseService<OutsourceOrder> {

	/**
	 * 计算订单完工数量
	 * @param content
	 * @param string 
	 */
	void handleOutsourceOrderQuantity(List<OutsourceOrder> content, String accessType);

    @Transactional
    Result<Object> convertOOFromMPlan(List<ManufacturePlan> planList);
}
